import request from '@/utils/request';

//新增资料
export function addMaterialFill(options) {
  return request({
    url: "/bk/material",
    method: 'post',
    data: options
  })
}

//获取资源库资料
export function materialList(options) {
  return request({
    url: "/bk/material",
    method: 'get',
    params: options
  })
}

//删除资料
export function deleteData(id) {
  return request({
    url: `/bk/material/${id}`,
    method: 'delete'
  })
}

//修改一条资料
export function reNameData(options) {
  return request({
    url: '/bk/material',
    data:options,
    method: 'put'
  })
}

// 获取一条素材
export function materialOne(id) {
  return request({
    url: `/material/get/${id}`,
    method: 'get'
  })
}

